﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VarMap.Source_Files
{
    class ToolException : Exception
    {
        private string _errCode;
        private string _errMsg;

        public ToolException(string exceptionCode, string exceptionMessage)
            : base(string.Format("Exception code: {0}, message: {1}", exceptionCode, exceptionMessage))
        {
            _errCode = exceptionCode;
            _errMsg = exceptionMessage;
           
        }

        public override string ToString()
        {
            return string.Format("Exception code: {0}, message: {1}", _errCode, _errMsg);
        }
    }
}
